package com.aurora.blog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aurora.common.core.annotation.Excel;
import com.aurora.common.core.web.domain.BaseEntity;

/**
 * 文章标签关联对象 blog_post_tags
 * 
 * @author aurora
 * @date 2024-06-04
 */
public class BlogPostTags extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关联ID */
    private Long id;

    /** 文章ID，关联到Posts表的post_id */
    @Excel(name = "文章ID，关联到Posts表的post_id")
    private Long postId;

    /** 标签ID，关联到Tags表的tag_id */
    @Excel(name = "标签ID，关联到Tags表的tag_id")
    private Long tagId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }
    public void setTagId(Long tagId) 
    {
        this.tagId = tagId;
    }

    public Long getTagId() 
    {
        return tagId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("postId", getPostId())
            .append("tagId", getTagId())
            .toString();
    }
}
